#include "Error.h"

//(*InternalHeaders(Error)
#include <wx/font.h>
#include <wx/intl.h>
#include <wx/string.h>
//*)

//(*IdInit(Error)
const long Error::ID_STATICTEXT1 = wxNewId();
const long Error::ID_BUTTON1 = wxNewId();
const long Error::ID_PANEL1 = wxNewId();
//*)

BEGIN_EVENT_TABLE(Error,wxFrame)
	//(*EventTable(Error)
	//*)
END_EVENT_TABLE()

Error::Error(wxWindow* parent,wxWindowID id,const wxPoint& pos,const wxSize& size)
{
	//(*Initialize(Error)
	Create(parent, id, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE, _T("id"));
	SetClientSize(wxSize(313,95));
	Move(wxPoint(500,200));
	Panel1 = new wxPanel(this, ID_PANEL1, wxPoint(112,40), wxSize(313,112), wxTAB_TRAVERSAL, _T("ID_PANEL1"));
	Panel1->SetForegroundColour(wxColour(5,197,231));
	Panel1->SetBackgroundColour(wxColour(32,32,50));
	StaticText1 = new wxStaticText(Panel1, ID_STATICTEXT1, _("Debes Seleccionar un Empleado"), wxPoint(40,16), wxSize(224,29), 0, _T("ID_STATICTEXT1"));
	wxFont StaticText1Font(11,wxSWISS,wxFONTSTYLE_NORMAL,wxBOLD,false,_T("Arial"),wxFONTENCODING_DEFAULT);
	StaticText1->SetFont(StaticText1Font);
	Button1 = new wxButton(Panel1, ID_BUTTON1, _("Aceptar"), wxPoint(192,56), wxSize(91,31), 0, wxDefaultValidator, _T("ID_BUTTON1"));
	Button1->SetForegroundColour(wxColour(0,0,0));
	Button1->SetBackgroundColour(wxColour(19,214,230));
	wxFont Button1Font(12,wxSWISS,wxFONTSTYLE_NORMAL,wxNORMAL,false,_T("Cooper Black"),wxFONTENCODING_DEFAULT);
	Button1->SetFont(Button1Font);
	
	Connect(ID_BUTTON1,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&Error::OnButton1Click);
	//*)
}

Error::~Error()
{
	//(*Destroy(Error)
	//*)
}


void Error::OnButton1Click(wxCommandEvent& event)
{
    Close();
}
